package com.amos.muexamclient.sys.service;

import com.amos.muexamclient.sys.service.dto.SysRoleDTO;
import com.amos.muexamcore.core.BasePageService;

import java.util.List;
import java.util.Set;

/**
 * Copyright © 2018 五月工作室. All rights reserved.
 *
 * @Package com.amos.muexamclient.sys.service
 * @ClassName SysRoleService
 * @Description TODO
 * @Author Amos
 * @Modifier
 * @Date 2020-03-24 14:35:56
 * @Version 1.0
 **/
public interface SysRoleService extends BasePageService<SysRoleDTO> {
    /**
     * 根据用户id查询角色权限
     *
     * @param id
     * @return
     */
    Set<String> selectRolePermissionByUserId(String id);

    List<SysRoleDTO> selectRoleUserId(String id);

    void checkRoleAllowed(SysRoleDTO role);

    int authDataScope(SysRoleDTO role);

    int deleteRoleByIds(String[] roleIds);

    List<SysRoleDTO> optionSelect();
}
